{include file='/public/header'}
<body>
    <!-- 顶部开始 -->
    <div class="container">
        <div class="logo"><a href="/admin.php">王艳萍整形美容医院</a></div>
        <div class="left_open">
            <i title="展开左侧栏" class="iconfont">&#xe699;</i>
        </div>
        <ul class="layui-nav left fast-add" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;">+新增</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <dd><a onclick="x_admin_show('会员','')"><i class="iconfont">&#xe6b8;</i>会员</a></dd>
               <dd><a onclick="x_admin_show('用户','')"><i class="iconfont">&#xe6b8;</i>用户</a></dd>
            </dl>
          </li>
        </ul>
        <ul class="layui-nav right" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;">admin</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <dd><a onclick="x_admin_show('个人信息','')">个人信息</a></dd>
              <dd><a onclick="x_admin_show('切换帐号','')">切换帐号</a></dd>
              <dd><a href="javascript:;" onclick="logout()">退出</a></dd>
            </dl>
          </li>
          <li class="layui-nav-item to-index"><a href="/index.php" target="_blank">前台首页</a></li>
        </ul>
        
    </div>
    <!-- 左侧菜单开始 -->
{include file='/public/left_menu'}
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
          <ul class="layui-tab-title">
            <li class="home"><i class="layui-icon">&#xe68e;</i>我的桌面</li>
          </ul>
          <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='{:url('index/welcome')}' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
          </div>
        </div>
    </div>
    <div class="page-content-bg"></div>
    <!-- 右侧主体结束 -->
    <script type="text/javascript">
        layui.use(['element','layer'], function(){
          var element = layui.element;
          $ = layui.jquery;
          layer = layui.layer;
        });
        // 退出
        function logout(){
          layer.confirm('确定要退出吗？', {
            btn: ['确定','取消']
          }, function(){
            $.get('{:url("login/logout")}',function(res){
              if(res.code>0){
                layer.msg(res.msg,{'icon':2});
              }else{
                layer.msg(res.msg,{'icon':1});
                setTimeout(function(){window.location.href="/admin.php/login/index";},1000);
              }
            },'json');
          });
        }
    </script>
    <!-- 底部开始 -->
{include file='/public/footer'}
    <!-- 底部结束 -->
</body>
</html>
